package com.solution.model;

import static javax.persistence.GenerationType.SEQUENCE;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * SchdJobAssociations
 */
@Entity
@Table(name="SCHD_JOB_ASSOCIATIONS"
	,schema="public")
public class SchdJobAssociations extends AbstractPO
 {

	
	private static final long serialVersionUID = 1L;
	
    private Long id;
    private SchdCronTriggers schdCronTriggers;
    private SchdJobDetails schdJobDetails;
    private String description;
    private Boolean isActive;
    private String parameters;

    @SequenceGenerator(name="generator", sequenceName="schd_job_association_seq")@Id @GeneratedValue(strategy=SEQUENCE, generator="generator")
    
    @Column(name="Job_Association_ID", unique=true, nullable=false, precision=10, scale=0)
    public Long getId() {
        return this.id;
    }
    
    public void setId(Long id) {
        this.id = id;
    }
@ManyToOne(fetch=FetchType.EAGER)
    @JoinColumn(name="Cron_Trigger_ID", nullable=false)
    public SchdCronTriggers getSchdCronTriggers() {
        return this.schdCronTriggers;
    }
    
    public void setSchdCronTriggers(SchdCronTriggers schdCronTriggers) {
        this.schdCronTriggers = schdCronTriggers;
    }
@ManyToOne(fetch=FetchType.EAGER)
    @JoinColumn(name="Job_Detail_ID", nullable=false)
    public SchdJobDetails getSchdJobDetails() {
        return this.schdJobDetails;
    }
    
    public void setSchdJobDetails(SchdJobDetails schdJobDetails) {
        this.schdJobDetails = schdJobDetails;
    }
    
    @Column(name="Description", length=150)
    public String getDescription() {
        return this.description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    @Column(name="Is_Active", nullable=false)
    public Boolean getIsActive() {
        return this.isActive;
    }
    
    public void setIsActive(Boolean isActive) {
        this.isActive = isActive;
    }
    
    @Column(name="Parameters", length=4000)
    public String getParameters() {
        return this.parameters;
    }
    
    public void setParameters(String parameters) {
        this.parameters = parameters;
    }




}


